AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Barra de herramientas
  • Overview
  • Handling the controls in a Toolbar control
  • How to close the floating Toolbar control?
  • Specific functions for managing Toolbar controls
  • Properties specific to the management of a Toolbar control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WINDEV allows you to handle a Toolbar control through programming. To do so, use the variable of the "Toolbar" control in the code.
The variable of Toolbar control corresponds to the toolbar name. This variable has no value.
Handling the controls in a Toolbar control
The controls found in the toolbar can be accessed:
  • like any other control, by using their name directly.
  • by specifying the name of the Toolbar control, then the name of the control. For example:
    Toolbar1.Button1
Remark: the properties affecting the size and position of controls found in the toolbar can be accessed in read-only.
How to close the floating Toolbar control?
To close a floating Toolbar control using the X, you must write the following line of code in the "Closing" event of the Toolbar control:
MySelf..Visible = False
Caution: The use of Close is not recommended. This function closes the window and not the Toolbar control.
Specific functions for managing Toolbar controls
The following functions are used to handle the Toolbar control through programming:
<Toolbar>.DockDocks a Toolbar control to a window or changes the anchoring position of a docked Toolbar control.
<Toolbar>.PositionIndicates the display mode of a Toolbar control.
<Toolbar>.UndockTransforms a docked Toolbar control into a floating Toolbar control.
Properties specific to the management of a Toolbar control
The following properties are used to manage the characteristics of a Toolbar control through programming:
HeightUsed to find out the height of a Toolbar control.
InitialHeightUsed to find out the initial height of a Toolbar control.
InitialWidthUsed to find out the initial width of a Toolbar control.
WidthUsed to find out and modify the width of a Toolbar control.

For a complete list of WLanguage properties that can be used with a Toolbar control, see Properties associated with Toolbar controls.
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local